/* * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *  @file:     setbgcolordialog.cpp
 *  @brief:    设置背景色对话框
 *  @author:   caoshi
 *  @time:     2021-08-20 21:27:05
 * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "setbgcolordialog.h"
#include "ui_setbgcolordialog.h"
#include <QDebug>

SetBgColorDialog::SetBgColorDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::SetBgColorDialog)
{
    ui->setupUi(this);
    setWindowTitle("设置背景色");
    setFixedSize(this->width(), this->height());    // 固定对话框大小

}

SetBgColorDialog::~SetBgColorDialog()
{
    delete ui;
}

void SetBgColorDialog::on_diaBtn_accepted()
{
    QString color = this->ui->colorComboBox->currentText();
    // qDebug() << color;
    // 发送信号
    emit okClicked(color);
}
